package eventos.borrar;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import controlador.ControladorEditor;

import vista.objetos.GraficableConEtiqueta;

public class EventoBorrarGraficable extends MouseAdapter {
	
	private GraficableConEtiqueta graficable;
	
	public EventoBorrarGraficable(GraficableConEtiqueta graficable)
	{
		super();
		this.graficable = graficable;
	}
	
	public void mouseReleased(MouseEvent e)
	{
		this.graficable.borrarseDelDiagrama();
			
		ControladorEditor.getInstancia().actualizarVista();
	}

}
